import request from "@/api/index";
export default {
  add(data) {
    const url = "/base/ncWaterQuality/add";
    return request.post(url, data);
  },
  edit(data) {
    const url = "/base/ncWaterQuality/edit";
    return request.post(url, data);
  },
  delById(id) {
    const url = `/base/ncWaterQuality/delById?id=${id}`;
    return request.get(url);
  },
  delListById(idList) {
    const url = `/base/ncWaterQuality/delListById?idList=${idList}`;
    return request.get(url);
  },
  queryPageByCondition(data) {
    const url = "/base/ncWaterQuality/queryPageByCondition";
    return request.post(url, data);
  },
  reportWaterQuality(data) {
    const url = "/base/ncWaterQuality/reportWaterQuality";
    return request.filePost(url, data);
  },
  excelImport(data) {
    const url = "/base/ncWaterQuality/excelImport";
    return request.formDataPost(url, data);
  },
  downloadTemplate() {
    const url = "/base/ncWaterQuality/downloadTemplate";
    return request.fileGet(url);
  }
};
